package com.airticketbooking.mapper;

import com.airticketbooking.po.Airline;
import com.airticketbooking.query.AirlinePageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.domain.Page;

/**
 * @author Mr.J
 * @version 1.0.0
 * @date 2024/10/10
 * @desc
 */

@Mapper
public interface AirlineMapper {


	@Select("SELECT * FROM airticketbooking.airlines WHERE airline_id = #{airlineId}")
	Airline queryById(Integer airlineId);



	Page<Airline> queryByPage(AirlinePageQuery airlinePageQuery);

}
